home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Programming / RxSocket / Install < prev    next >
Encoding:
Text File  |  2001-09-18  |  6.6 KB  |  208 lines

  1. ; $VER: RxSocket_Install 30.0 (18.9.01)
  2.  
  3. (procedure P_SetMessages
  4.  
  5.     (if (= "italiano" @language)
  6.         (
  7.             (set #WhatInstallPromptMsg            "Cosa vuoi installare?")
  8.             (set #WhatInstallHelpMsg            "Scegli cosa vuoi installare:\n\nLibrerie - le librerie di RxSocket\nUtilità - alcune programmi d'utilità\nDocumentazione - la documentazione RxSocket in formato AmigaGuide\nEsempi - alcune macro d'esempio")
  9.  
  10.             (set #WhatInstallLibrariesMsg        "Librerie")
  11.             (set #WhatInstallUtilitiesMsg        "Utilità")
  12.             (set #WhatInstallDocumentationMsg    "Documentazione")
  13.             (set #WhatInstallExamplesMsg        "Esempi")
  14.  
  15.             (set #AskLibsDirPromptMsg            "Scegli la directory dove installare le librerie")
  16.             (set #AskLibsDirHelpMsg                "Nella directory che sceglierai, saranno installate le librerie di RxSocket. La directory deve essere nell'assegnamento logico LIBS:")
  17.  
  18.             (set #AskUtilitisDirPromptMsg        "Scegli la directory dove installare le utilità")
  19.             (set #AskUtilitiesDirHelpMsg        "Nella directory che sceglierai, saranno installate le utilità di RxSocket. La directory deve essere nella path.")
  20.  
  21.             (set #AskGuideDirPromptMsg            "Scegli la directory dove installare la documentazione")
  22.             (set #AskGuideDirHelpMsg            "Nella directory che sceglierai, sarà installata la documentazione di RxSocket.")
  23.  
  24.             (set #AskExamplesDirPromptMsg        "Scegli la directory dove installare gli esempi")
  25.             (set #AskExamplesDirHelpMsg            "Nella directory che sceglierai, saranno installate alcune macro d'esempio.")
  26.  
  27.             (set #CopyingLibsMsg                "Sto copiando le librerie")
  28.             (set #CopyingUtilitiesMsg            "Sto copiando le utilità")
  29.             (set #CopyingGuideMsg                "Sto copiando la ducmentazione")
  30.             (set #CopyingExamplesMsg            "Sto copiando gli esempi")
  31.         )
  32.         (
  33.             (set #WhatInstallPromptMsg            "What do you want to install?")
  34.             (set #WhatInstallHelpMsg            "Choose what you want to install:\nLibraries - all the libraries needed by RxSocket to work\nUtilities - some little utilities, such as rxs, needed to call macros from inetd\nDocumentation - RxSocket documentation in AmigaGuide format\nExamples - RxSocket ARexx macros")
  35.  
  36.             (set #WhatInstallLibrariesMsg        "Libraries")
  37.             (set #WhatInstallUtilitiesMsg        "Utilities")
  38.             (set #WhatInstallDocumentationMsg    "Documentation")
  39.             (set #WhatInstallExamplesMsg        "Examples")
  40.  
  41.             (set #AskLibsDirPromptMsg            "Select the drawer where you want to install RxSocket libraries")
  42.             (set #AskLibsDirHelpMsg                "In the drawer you supply here, there will be installed rxsocket.library rxlibnet.library and rmh.library. This drawer MUST BE in your LIBS: assignment")
  43.  
  44.             (set #AskUtilitisDirPromptMsg        "Select the drawer where you want to install some RxSocket little utilities.")
  45.             (set #AskUtilitiesDirHelpMsg        "In the drawer you supply here, there will be installed some little utilities such as rxs, needed to launch macro from inetd and rxhelp, needed to obtain RxSocket functions inline help. The best drawer to place them is C: ; anyway, it should be in your PATH")
  46.  
  47.             (set #AskGuideDirPromptMsg            "Select the drawer where you want to install RxSocket documentation")
  48.             (set #AskGuideDirHelpMsg            "In the drawer you supply here, there will be installed the RxSocket documentation in AmigaGuide format")
  49.  
  50.             (set #AskExamplesDirPromptMsg        "Select the drawer where you want to install RxSocket examples macro")
  51.             (set #AskExamplesDirHelpMsg            "In the drawer you supply here, there will be installed some RxSocket examples ARexx macros")
  52.  
  53.             (set #CopyingLibsMsg                "Copying or Updating libraries")
  54.             (set #CopyingUtilitiesMsg            "Copying or Updating utilities")
  55.             (set #CopyingGuideMsg                "Copying documentation")
  56.             (set #CopyingExamplesMsg            "Copying examples")
  57.         )
  58.     )
  59. )
  60.  
  61. (procedure P_ChooseWhatIstall
  62.     (set #WhatInstall (askoptions (prompt #WhatInstallPromptMsg)
  63.                                   (help #WhatInstallHelpMsg)
  64.                                   (choices #WhatInstallLibrariesMsg #WhatInstallUtilitiesMsg #WhatInstallDocumentationMsg    #WhatInstallExamplesMsg)
  65.                          )
  66.      )
  67. )
  68.  
  69. (procedure P_AskLibsDir
  70.     (set #libsDir
  71.         (askdir
  72.                (prompt #AskLibsDirPromptMsg)
  73.                (help #AskLibsDirHelpMsg)
  74.                (default "LIBS:")
  75.           )
  76.      )
  77. )
  78.  
  79. (procedure P_AskUtiliesDir
  80.     (set #utilitiesDir
  81.         (askdir
  82.                (prompt #AskUtilitisDirPromptMsg)
  83.                (help #AskUtilitiesDirHelpMsg)
  84.                (default "C:")
  85.           )
  86.      )
  87. )
  88.  
  89. (procedure P_AskGuideDir
  90.     (set #guideDir
  91.         (askdir
  92.            (prompt #AskGuideDirPromptMsg)
  93.            (help #AskGuideDirHelpMsg)
  94.            (default "Ram:")
  95.         )
  96.      )
  97. )
  98.  
  99. (procedure P_AskExamplesDir
  100.     (set #examplesDir
  101.         (askdir
  102.             (prompt #AskExamplesDirPromptMsg)
  103.                (help #AskExamplesDirHelpMsg)
  104.                (default "Ram:")
  105.           )
  106.      )
  107. )
  108.  
  109. (procedure P_CopyLibs
  110.     (working #CopyingLibsMsg)
  111.     (set #localLibsDir (tackon #source-dir "LIBS/"))
  112.     (foreach #localLibsDir "#?"
  113.           (copylib
  114.                (source (tackon #localLibsDir @each-name))
  115.                (dest #libsDir)
  116.           )
  117.      )
  118. )
  119.  
  120. (procedure P_CopyUtilities
  121.     (working #CopyingUtilitiesMsg)
  122.     (set #localUtilitiesDir (tackon #source-dir "C/"))
  123.     (foreach #localUtilitiesDir "#?"
  124.           (copylib
  125.                (source (tackon #localUtilitiesDir @each-name))
  126.                (dest #UtilitiesDir)
  127.           )
  128.      )
  129. )
  130.  
  131. (procedure P_CopyCatalogs
  132.     (set #catSourceDir (tackon #source-dir (tackon "Catalogs" @language)))
  133.     (set #catDestDir (tackon "Locale:" (tackon "Catalogs" @language)))
  134.     (if (= (and (= (exists (#catSourceDir)) 2) (= (exists (#catDestDir)) 2)) 1)
  135.         (foreach #catSourceDir "#?"
  136.               (copylib
  137.                    (source (tackon #catSourceDir @each-name))
  138.                    (dest #catDestDir)
  139.               )
  140.          )
  141.     )
  142. )
  143.  
  144. (procedure P_CopyDocs
  145.     (working #CopyingGuideMsg)
  146.     (copyfiles
  147.         (source (tackon #source-dir "DOCS/english/"))
  148.           (dest #guideDir)
  149.           (optional force askuser)
  150.           (all)
  151.      )
  152. )
  153.  
  154. (procedure P_CopyDocs
  155.     (working #CopyingGuideMsg)
  156.     (set #docSourceDir (tackon #source-dir (tackon "DOCS" @language)))
  157.     (if (<> (exists #docSourceDir) 2) (set #docSourceDir (tackon #source-dir "DOCS/english/")))
  158.     (copyfiles    (source #docSourceDir)
  159.                   (dest #guideDir)
  160.                   (optional force askuser)
  161.                   (all)
  162.      )
  163. )
  164.  
  165.  
  166. (procedure P_CopyExamples
  167.     (working #CopyingExamplesMsg)
  168.     (copyfiles
  169.         (source (tackon #source-dir "EXAMPLES/"))
  170.           (dest #examplesDir)
  171.           (optional force askuser)
  172.           (all)
  173.      )
  174. )
  175.  
  176. (set @default-dest "LIBS:")
  177. (set #source-dir (if (= 1 (exists @icon)) (pathonly (expandpath @icon)) (expandpath @icon)))
  178.  
  179. (P_SetMessages)
  180.  
  181. (complete 0)
  182.  
  183. (P_ChooseWhatIstall)
  184.  
  185. (if (= 0 #WhatInstall) (exit))
  186. (if (BITAND #WhatInstall 1)  (P_AskLibsDir))
  187. (if (BITAND #WhatInstall 2)  (P_AskUtiliesDir))
  188. (if (BITAND #WhatInstall 4)  (P_AskGuideDir))
  189. (if (BITAND #WhatInstall 8)  (P_AskExamplesDir))
  190.  
  191. (if (BITAND #WhatInstall  1)
  192.     (
  193.         (P_CopyLibs)
  194.         (P_CopyCatalogs)
  195.     )
  196. )
  197. (complete 30)
  198.  
  199. (if (BITAND #WhatInstall 2)  (P_CopyUtilities))
  200. (complete 40)
  201.  
  202. (if (BITAND #WhatInstall 4)  (P_CopyDocs))
  203. (complete 80)
  204.  
  205. (if (BITAND #WhatInstall 8)  (P_CopyExamples))
  206. (complete 100)
  207.  
  208.